#define _CRT_SECURE_NO_WARNINGS 1

#include "BSTree.h"

int main()
{
	BSTree<int> t1;
	int A[] = { 8, 3, 1, 10, 6, 4, 7, 14, 13 };
	for (auto e : A)
	{
		t1.insert(e);
	}
	t1.Inorder();
	t1.Erase(14);
	t1.Inorder();
	t1.Erase(13);
	t1.Inorder();
	t1.Erase(10);
	t1.Inorder(); 
	t1.Erase(8);
	t1.Inorder();
	t1.Erase(7);
	t1.Inorder();
	t1.Erase(6);
	t1.Inorder();
	t1.Erase(4);
	t1.Inorder();
	t1.Erase(3);
	t1.Inorder();

	return 0;
}